﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program01
{
    class Person
    {
        //姓名
        public string name { get; set; }
        
        //姓
        public string FirstName { get; set; }
        
        //名
        public string LastName { get; set; }

        //表达式体的属性-C#7.0新语法
        public string FullName => $"{FirstName}{LastName}";
        //年龄
        public int Age { get; set; }

        //性别
        public bool Sex { get; private set; } = true;
    }
}
